package movee.service;

import movee.cluster.ClusterInfo;
import movee.cluster.ClusterService;
import movee.os.FileSystemService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 集群服务
 *
 * @author movee
 */
@Service
@Slf4j
public class AppClusterService {

    private final FileSystemService fileSystemService;
    private final ClusterService clusterService;

    public AppClusterService(ClusterService clusterService,
                             FileSystemService fileSystemService) {
        this.clusterService = clusterService;
        this.fileSystemService = fileSystemService;
    }

    /**
     * 获取集群信息
     * @return cluster info
     */
    public ClusterInfo getClusterInfo() {
        return clusterService.getClusterInfo();
    }

    /**
     * 通知
     */
    public void notifyScheduledTask() {

    }

}
